package com.zhy.springcloud.config;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author zhy
 * @Description 启动类的配置文件
 * @ClassName ApplicationContextConfig
 * @Date 2020/11/13 16:19
 **/
@Configuration
public class ApplicationContextConfig {

    @Bean
    //手写轮询暂时关掉
    //@LoadBalanced
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
